import request from '@/utils/request'

// 删除
export function workDel(data = {}) {
  return request({
    url: '/workbench/attend-duty/remove',
    method: 'get',
    params: data
  })
}
// 修改
export function workEdit(data = {}) {
  return request({
    url: '/workbench/attend-duty/save',
    method: 'post',
    data: data
  })
}
// 详情
export function workDtl(data = {}) {
  return request({
    url: '/workbench/attend-duty/detail',
    method: 'get',
    params: data
  })
}


// 列表
export function workListByGroup(data = {}) {
  return request({
    url: '/workbench/attend-duty/month',
    method: 'get',
    params: data
  })
}

// 根据人员查排班
export function workListByMember(data = {}) {
    return request({
      url: '/workbench/attend-duty/memberMonth',
      method: 'get',
      params: data
    })
  }